package com.eas.biz.dao.grade.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.grade.dataobject.GradeInfoDO;
import com.eas.biz.dao.grade.interfaces.GradeInfoDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("gradeInfoDao")
public class GradeInfoDaoImpl extends GenericDaoImpl<GradeInfoDO> implements GradeInfoDao {

    public GradeInfoDO selectById(long id) {
        return selectById("GradeInfo.selectById", id);
    }

    public long insert(GradeInfoDO object) {
        return insert("GradeInfo.insert", object);
    }

    public int deleteById(long id) {
        return deleteById("GradeInfo.deleteById", id);
    }

    public int update(GradeInfoDO object) {
        return update("GradeInfo.update", object);
    }

    public List<GradeInfoDO> selectByQuery(BaseQuery query) {
        return selectByQuery("GradeInfo.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("GradeInfo.countByQuery", query);
    }

}
